package cn.exercises.oop02;

public class Student extends Person{
    private String className;

    public Student() {
    }

    public Student(String name, int age, String className) {
        super(name, age);
        this.className = className;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    // 发布问题publishForm
    public void publishForm(){
        System.out.println(this.getName()+" 正在"+this.className+"发布问题");
    }
}
